package com.huawei.appgallery.wlanapp.ui;

import android.os.Bundle;
import com.huawei.appgallery.foundation.service.common.protocol.AppListFragmentProtocol;
import com.huawei.appgallery.foundation.store.bean.detail.DetailResponse;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.LayoutData;
import com.huawei.appgallery.foundation.ui.framework.fragment.AppListFragment;
import com.huawei.appgallery.foundation.ui.framework.fragment.AppListFragment.b;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.wlanapp.ui.card.WlanAppBean;
import java.util.ArrayList;
import java.util.List;

public class WlanAppListFragment extends AppListFragment<AppListFragmentProtocol> implements b {
    private static List<String> ˊ = new ArrayList();

    public static void ˋ(ResponseBean responseBean) {
        LayoutData layoutData;
        int i;
        int i2 = 0;
        ˊ.clear();
        List<LayoutData> ᐝॱ = ((DetailResponse) responseBean).ᐝॱ();
        int i3 = 0;
        for (LayoutData layoutData2 : ᐝॱ) {
            if ("wlanappcard".equals(layoutData2.ˏ()) && layoutData2.ˋ().size() > 0) {
                i = 1;
                break;
            }
            i3++;
        }
        i = 0;
        if (i != 0) {
            layoutData2 = (LayoutData) ᐝॱ.get(i3);
            while (i2 < layoutData2.ˋ().size()) {
                WlanAppBean wlanAppBean = (WlanAppBean) layoutData2.ˋ().get(i2);
                if (!(wlanAppBean.ͺˏ() == null || wlanAppBean.ॱـ() == null)) {
                    ˊ.add(wlanAppBean.ॱـ());
                }
                i2++;
            }
        }
    }

    public static List<String> ˊʻ() {
        return ˊ;
    }

    public void ˏ(Bundle bundle) {
        if (this.ˋ != null) {
            ˋ(this.ˋ.ˋ);
        }
        super.ˏ(bundle);
        ˋ((b) this);
    }

    public void a_(ResponseBean responseBean) {
        if (responseBean != null) {
            ˋ(responseBean);
        }
    }
}
